﻿@model DCode.EmailValidator.UI.Models.HomeModel

@{
    ViewBag.Title = "Easy Email Tools Test";
    Layout = "~/Views/Shared/_General.cshtml";
}
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

<!-- Inner box with content and submit form -->
<div class="box">
    <div>

        <!-- Left content column -->
        <div>
            <div class="logo">
                <img src="@Url.Content("~/images/logo.png")" alt="logo" />
            </div>
            <h2>Open library for email tools</h2>
            You can validate all email adresses of your customers or user the api in your own apps, you can use too our validation service.
            <br /> <a href="https://twitter.com/dcodechile" target="_blank">Give us some lines...</a><br /><img src="@Url.Content("~/images/twitter.jpg")" alt="twitter" class="small_icon" /><img src="@Url.Content("~/images/facebook.jpg")" alt="facebook" class="small_icon" />
        </div>

        <!-- Right content column -->
        <div>
            <p><a href="https://twitter.com/dcodechile" target="_blank"><img src="@Url.Content("~/images/icon1.png")" alt="icon1" class="first_icon" /></a><h3>Follow Us</h3>View all tech and development news that we have for you.</p>
            <hr />
            <p><img src="@Url.Content("~/images/icon3.png")" alt="icon3" class="icon" /><h3>New features</h3>If you think that we can add more features or improvements to this service just leave us a message.</p>
            <hr />
        </div>
    </div>

    <div class="form">
            <div class="hidden_element">
                <label for="contact-name"><strong>Name</strong> (required)</label>
                <input type="text" name="name" value="From a visitor of your site" id="contact-name" required>
            </div>
            <p>
                <label for="contact-email"></label>
                @Html.TextBoxFor(m => m.EmailAddress, new { id = "contact-email", @class = "form-control", placeholder = "Email", maxlength = "100" })
                @Html.ValidationMessageFor(m => m.EmailAddress)
            </p>

            <div class="hidden_element">
                <label for="contact-subject"><strong>Subject</strong></label>
                <input type="text" name="subject" value="Add me to your list" id="contact-subject">
            </div>
            <div class="hidden_element">
                <label for="contact-message"><strong>Your Message</strong> (required)</label>
                <textarea name="message" id="contact-message" cols="88" rows="6" value="please add me to your mailing list"></textarea>
            </div>

            <div class="hidden_element">
                <label for="contact-spam-check">Do not fill out this field:</label>
                <input name="spam-check" type="text" value="" id="contact-spam-check" />
            </div>
            <input type="submit" class="button" value="Validate" id="submitButton">
    </div>
    <div align="center">
        @Model.GeneralMessage
    </div>
</div>

<div class="footer">
    <hr />
    This is a D-Code Open Source project - <a href="http://www.d-code.cl" target="_blank">www.d-code.cl</a><br />
   Santiago, Chile
</div>
}